﻿<%@ Page Title="Вход в систему" Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Otgruzka.Account.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Заказ товров онлайн - вход в систему</title>
        <%--<link rel="SHORTCUT ICON" href="favicon.ico" />--%>

        <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
        <link href="~/Styles/OtgStyle.css" rel="stylesheet" type="text/css" />
        <link href="~/Styles/progressbar.css" rel="stylesheet" type="text/css" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style>
            body, html
            {
                height:100%;
            }
        </style>
    </head>

    <body style="background:#4B6C9E;">
    <table width="100%" border="0">
        <tr>
            <td width="33%"><img src="/Images/CompanyLogo.jpg" border="0" height="40"></td>
            <td width="33%" align="center"><h2 style="color:White;">Заказ товаров для офиса</h2></td>
            <td width="33%" align="right"><img src="/Images/megaoffice.png" border="0" height="40"></td>
        </tr>
    </table>
        <form id="LoginForm" runat="server">
            <asp:ScriptManager ID="scriptManager" runat="server" EnablePageMethods="true" ScriptMode="Release"></asp:ScriptManager>
            <asp:UpdatePanel ID="LoginListUpdatePanel" runat="server">
                <ContentTemplate>
                    <table width="100%" style="height: 100%">
                        <tr>
                            <td align="center">
                                <table cellspacing="0" cellpadding="0" width="100%" style="height: 100%">
                                    <tbody>
                                        <tr>
                                            <td colspan="2">
                                                <table cellspacing="0" cellpadding="0" width="100%" style="height: 100%;">
                                                    <tr style="height: 100%">
                                                        <td valign="top" width="100%" style="height: 100%;">
                                                            <div class="mainContainer" id="ctl00_MSO_ContentDiv" style="height: 100%; padding-top: 128px; padding-bottom: 128px;">
                                                                <div style="border: solid 1pt white; width: 400px; padding: 32px; text-align: center;
                                                                    margin-left: auto; margin-right: auto;">
                                                                    <table style="width: 100%; text-align: left;">
                                                                        <tr><td style="color:White;font-weight:bold;">Бизнес сфера:</td></tr>
                                                                        <tr>
                                                                            <td><asp:TextBox ID="txtLogin" runat="server" Width="98%"  style="color:blue;padding:4px;" /></td>
                                                                        </tr>
                                                                        <tr><td style="color:White;font-weight:bold;">МВЗ:</td></tr>
                                                                        <tr>
                                                                            <td><asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="98%" style="color:blue;padding:4px;" /></td>
                                                                        </tr>
                                                                        <tr style="visibility:hidden;">
                                                                            <td><asp:CheckBox ID="chbStayInSystem" runat="server" Checked="false" Text="Оставаться в системе" /></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td style="text-align: right;">
                                                                                <asp:Button ID="btnLogin" runat="server" Text="Войти" OnClick="OnLoginClick" CssClass="button" style="color:blue;padding:4px;width:100px;" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <asp:Panel ID="pnlErrorLoginMessage" runat="server" Visible="false">
                                                                        <hr /><span style="color: Red"><asp:Literal runat="server" ID="lblErrorMessage"></asp:Literal></span>
                                                                    </asp:Panel>
                                                                </div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:UpdateProgress ID="LoginProgressBar" runat="server" AssociatedUpdatePanelID="LoginListUpdatePanel">
                <ProgressTemplate>
                    <div id="closebg" style="height:100%;">
                        <div id="centered">
                            <asp:Image ID="LoginProgressImage" runat="server" ImageUrl="~/Images/ajax-loader.gif" style="vertical-align:middle; text-align:center;" AlternateText="Проверяются введенные данные" />
                        </div>
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
        </form>


    <%--<h2>
        Log In
    </h2>
    <p>
        Please enter your username and password.
        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false">Register</asp:HyperLink> if you don't have an account.
    </p>
    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" 
                 ValidationGroup="LoginUserValidationGroup"/>
            <div class="accountInfo">
                <fieldset class="login">
                    <legend>Account Information</legend>
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                        <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                             CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                        <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:CheckBox ID="RememberMe" runat="server"/>
                        <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Keep me logged in</asp:Label>
                    </p>
                </fieldset>
                <p class="submitButton">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="LoginUserValidationGroup"/>
                </p>
            </div>
        </LayoutTemplate>
    </asp:Login>--%>

    </body>
</html>

